<?php 
foreach ($all_post as $key => $post) {
?>									<?php if($post['status'] == '1'){ ?>
									<li>
										<a href="/post/detail/<?php echo $post['post_id']; ?>">
										<div class="col1">
											<div class="cont">
												<div class="cont-col1">
													<div class="label label-sm label-info">
															<i class="fa fa-check"></i>
													</div>
												</div>
												<div class="cont-col2">
													<div class="desc">
														 <?php echo $post['post_excerpt']; ?>
													</div>
												</div>
											</div>
										</div>
										<div class="col2">
											<div class="date">
												<?php echo $post['username']; ?>
											</div>
										</div>
										</a>
									</li>
									<?php }else{ ?>
									<li>
										<div class="col1">
											<div class="cont">
												<div class="cont-col1">
													<div class="label label-sm label-default">
															<i class="fa fa-bell-o"></i>
													</div>
												</div>
												<div class="cont-col2">
													<div class="desc">
														 <?php echo $post['post_excerpt']; ?>
													</div>
												</div>
											</div>
										</div>
										<div class="col2">
											<div class="date">
												<?php echo $post['username']; ?>
											</div>
										</div>
									</li>
									<?php } ?>
<?php } ?>